package com.tsd.core.openweixin.model.material;

import java.io.Serializable;
import java.util.List;

/**
 * 微信素材列表返回结果
 *
 * @author Administrator
 */
public class WxMaterialNewsList implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -3237402322031240159L;
    List<WxMaterialNews> item;
    private String errcode;
    private String errmsg;
    private Integer total_count;
    private Integer item_count;

    public boolean isSuccess() {
        return getErrcode() == null || "-1".equals(getErrcode());
    }

    public String getErrcode() {
        return errcode;
    }

    public void setErrcode(String errcode) {
        this.errcode = errcode;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }

    public Integer getTotal_count() {
        return total_count;
    }

    public void setTotal_count(Integer total_count) {
        this.total_count = total_count;
    }

    public Integer getItem_count() {
        return item_count;
    }

    public void setItem_count(Integer item_count) {
        this.item_count = item_count;
    }

    public List<WxMaterialNews> getItem() {
        return item;
    }

    public void setItem(List<WxMaterialNews> item) {
        this.item = item;
    }

    //toString用于后台打印
    @Override
    public String toString() {
        return "WxMaterialNewsList [errcode=" + errcode + ", errmsg=" + errmsg
                + ", total_count=" + total_count + ", item_count=" + item_count
                + ", item=" + item + "]";
    }


}
